package com.sl.au.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import com.sl.au.entity.MessageVerification;

public interface MessageVerificationRepository extends JpaRepository<MessageVerification, String> {
	@Query("select m from MessageVerification m where m.phoneNum = ?1 order by m.createTime asc")
	MessageVerification findByPhone(String phoneNum);
}
